<script src="{{ getAssets }}js/bivariatetable/bivariatetable.js" type="text/javascript"></script>
<script type="text/javascript">
var goods_id = '{{.goods_id}}';
var entry_id = '{{.entry_id}}';
var middle_id = '{{.middle_id}}';

$(function(){
	$.post('{{ urlfor "ErpEntryController.OtherAdd" }}',{'goods_id':goods_id, 'middle_id': middle_id}, function(res){
		if(res.code == 0) {
			$('#goods-title').html(productGroupName(res.data.goods));
			$('#purchase_num').val(res.data.middle[0].purchase_num);
		}
	}, 'json');
	
});
</script>